package fem2.material.cohesive_law;

import fem2.Element;
import inf.jlinalg.Array2DMatrix;
import inf.jlinalg.ArrayVector;
import inf.jlinalg.IMatrix;
import inf.jlinalg.IVector;

public class NoncohesiveLaw extends CohesiveLaw {

	public NoncohesiveLaw(double Gf, double ft) {
		super(Gf, ft);
	}

	@Override
	public IVector computeJumpTraction(Element e, IVector w) {
		return new ArrayVector(w.getSize());
	}

	@Override
	public IMatrix computeJumpStiffness(Element e, IVector w) {
		return new Array2DMatrix(w.getSize(), w.getSize());
	}

}
